home *** CD-ROM | disk | FTP | other *** search
/ Chip: Internet / Chip Internet.iso / viewer / emtex.ins / dvineclq / dviproc.zoo / pctex / dvihgc.doc < prev    next >
Text File  |  1990-04-17  |  19KB  |  465 lines

  1.  
  2.                                  DVIVGA
  3.                                  DVIHGC
  4.  
  5.  
  6.                Public Domain DVI Previewer for the IBM PC
  7.  
  8.  
  9.  
  10.                               Doug McDonald
  11.          <mcdonald@uiucuxe.bitnet> | <mcdonald@uxe.cso.uiuc.edu>
  12.  
  13.                            Martin Bauchrowitz
  14.                           Stuttgart - W.Germany
  15.  
  16.                            Stefan A. M\"uhlenweg
  17.                          <me50090@dhhuni4.bitnet>
  18.  
  19.  
  20.  DVIxxx is a TeX screen previewer for the IBM PC. It expects the name of
  21.  the .DVI file on the command line, and the extension .dvi can always
  22.  be omitted.  As illustrated below, it issues a one-line identifier
  23.  message and, if no command line arguments are given, type a UNIX-style
  24.  message.
  25.  
  26.  This driver and the associated font files are public domain. It is part
  27.  of a family written by Nelson Beebe of the University of Utah and
  28.  others. The screen previewer is an adaptation of this code by Doug
  29.  McDonald at the University of Illinois.
  30.  DVIHGC and DVIHGCMS is an adaption of this code by Martin Bauchrowitz.
  31.  
  32.  
  33.  EQUIPMENT REQUIREMENTS
  34.  
  35.  An IBM PC computer with 512K or more of memory. Alternately, a
  36.  compatible with similar specs. The DVIVGA screen driver needs an EGA,
  37.  VGA or MCGA graphics adapter, or a clone. DVIHGC screen driver needs
  38.  only an HGC grapics adapter. A clock speed of 8MHz minimum is 
  39.  essentially necessary, unless you are a very patient person.
  40.  A 20 or 25MHz machine is fast enough that you will be very happy. 
  41.  A fast hard disk is also necessary.
  42.  
  43.  DVIVGA will work on computers with EGAs. However, and it is a big however,
  44.  the pixels on an EGA are not square. Hence the output will be distorted:
  45.  circles come out as vertically stretched ellipses, squares as vertically
  46.  stretched rectangles, and text is a bit too high.
  47.  Nevertheless, it doesn't look bad at all and is useful.
  48.  For HGC-Screens, that's the same however.
  49.  
  50.  
  51.  OPTIONS
  52.  
  53.  The order of command options and .DVI file name is not significant; all
  54.  switch values are accepted by this driver, but not all are really
  55.  meaningful.
  56.  
  57.  Letter case is ignored in option switches:  -A and -a are equivalent.
  58.  
  59.                 -a Implement virtual font caching. This option is
  60.                    essentially useless for this driver.
  61.  
  62.                 -d Produce debugging output on stderr if a non-zero
  63.                    value is given.  These are:
  64.  
  65.                      2 --- Display coordinates, metrics, and bitmap
  66.                            of each character.
  67.                      8 --- Display each successful file opening.
  68.                     16 --- Display each unsuccessful file opening.
  69.                     32 --- Show discarded off-page text.
  70.                     64 --- Trace virtual font caching.
  71.                    128 --- Trace character setting.
  72.  
  73.                    It is possible to combine these options by adding
  74.                    their values.
  75.  
  76.                    CAUTION: DVIHGC has its own graphic routine. But
  77.                    ======== there is no function implemented that allow
  78.                             to see text in graphic mode!!!!
  79.                             You will see only some flimmering lines.
  80.  
  81.                             If you're using the -d option with DVIHGC,
  82.                             please use the -q option too, so DVIHGC will
  83.                             toggle between text and graphics mode.
  84.  
  85.        -eVAR=value Define environment variables on command line. This
  86.                    is an alternative to placing them in the DOS
  87.                    environment.
  88.  
  89.  
  90.      -ffontsubfile Define an alternate font substitution file which is
  91.                    to be used instead of the default ones (see below).
  92.  
  93.                 -l Inhibit logging.
  94.  
  95.                 -m Reset magnification. The default for the screen
  96.                    driver is -m500 (100dpi). Other values will be reset to
  97.                    the nearest value in this set. Magnification values less
  98.                    than 25 are taken to be a TeX magstep parameter
  99.                    which is applied to the standard magnification for
  100.                    that device. Thus -m-0.5 will reduce the output size
  101.                    by the square root of 1.2, -m2 will increase it by
  102.                    a factor of 1.44.
  103.  
  104.                    You may well need to use this parameter frequently;
  105.                    good values to try are 600, 548, 456, 417, 380,
  106.                    347, 319, and 289. These are equivalent to -m1,
  107.                    -m0.5, -m-0.5, ... -m-3. -m380 or -m-1.5 gives actual
  108.                    size output using VGA on an IBM8513 monitor.
  109.  
  110.                    Read about "Batch Files" to find an easy way of
  111.                    changing sizes.
  112.  
  113.  
  114.                 -q Quiet mode.  Status displays to screen are
  115.                    suppressed, unless warning or error messages are
  116.                    issued.  This switch is a toggle. The default is
  117.                    not to display messages.
  118.  
  119.                    CAUTION: DVIHGC, if you're using the -q option, the
  120.                    ========         screen toggles between text and graphic
  121.                                     mode.
  122.  
  123.           -x#units The -x options specify the left margin of the TeX
  124.                    page on the output page in any of several units.
  125.                    Letter case is not significant in the units field,
  126.                    which must not be separated from the number by any
  127.                    space.  The number may be fractional.  For example,
  128.                    -x1.0in, -x2.54cm, -x72.27pt, and -x6.0225pc all
  129.                    specify a one-inch left margin. Negative values are
  130.                    permissible, and may be used to shift the output
  131.                    page left (possibly truncating it on the left) in
  132.                    order to display a wide TeX page.
  133.  
  134.                    The units field is mandatory, and may be one of
  135.  
  136.                            big point (1in = 72bp)
  137.                            cicero (1cc = 12dd)
  138.                            centimeter (1in = 2.54cm)
  139.                            didot point (1157dd = 1238pt)
  140.                            inch
  141.                            millimeter (10mm = 1cm)
  142.                            pica (1pc = 12pt)
  143.                            point (72.27pt = 1in)
  144.                            scaled point (65536sp = 1pt)
  145.  
  146.           -y#units This is just like -x except that it is for the top
  147.                    margin.
  148.  
  149.                    Because the normal defaults waste screen space, the
  150.                    defaults for the screen driver have both been set to
  151.                    zero. If you wish to get the correct margins and
  152.                    size, try -x1.in -y1.in -m382 for DVIVGA.
  153.  
  154.  
  155.  
  156.  FONT SUBSTITUTION
  157.  
  158.  If no -ffontsubfile option is given, and font substitution is required,
  159.  if the current .DVI file is  foo.dvi, then the files  foo.sub,
  160.  texfonts.sub, and TEXINPUTS\texfonts.sub will be tried in order.  The
  161.  first two will be found on the current directory, and the last is the
  162.  default given in the environment string TEXINPUTS.  The -f option
  163.  allows all of these to be overridden. It is essentially necessary to
  164.  have this file if you use a magnification smaller than the default for
  165.  DVIVGA. A copy of a suitable one is supplied.
  166.  
  167.  Font substitution lines have the form:
  168.  
  169.  
  170.              oldname.oldmag      subname.submag   % comment
  171.              oldname oldmag      subname submag   % comment
  172.              oldname             subname          % comment
  173.  
  174.  Examples are:
  175.  
  176. ----------
  177.  
  178.  % These provide replacements for some LaTeX invisible fonts:
  179.  icmr10 1500     ->      cmr10 1500      % comment
  180.  icmr10.1500     ->      cmr10.1500      % comment
  181.  icmssb8         ->      cmssb8          % comment
  182.  
  183. ----------
  184.  
  185.  
  186.  The first two forms request substitution of a particular font and
  187.  magnification. The third form substitutes an entire font family; the
  188.  closest available magnification to the required one will be used.  Any
  189.  dots in the non-comment portion will be converted to spaces, and
  190.  therefore, cannot be part of a name field.
  191.  
  192.  The first matching substitution will be selected, so
  193.  magnification-specific substitutions should be given first, before
  194.  family substitutions.
  195.  
  196.  Comments are introduced by percent and continue to end-of-line, just as
  197.  for TeX. One whitespace character is equivalent to any amount of
  198.  whitespace. Whitespace and comments are optional.
  199.  
  200.  
  201.  
  202.  SCREEN CONTROL
  203.  
  204.  DVIxxx supports interactive viewing of the TeX output. Here is the
  205.  current command list. Input is immediate; no terminating carriage
  206.  return is necessary, except for the number command to go to a
  207.  particular page.
  208.  
  209.  uparrow downarrow Move the view of the current page up or down. These
  210.                    commands do not require recalculating the screen
  211.                    image and are very fast.
  212.  
  213.                  D Move the page origin one inch down.
  214.  
  215.                  d Move the page origin one-quarter inch down.
  216.  
  217.                  U Move the page origin one inch up.
  218.  
  219.                  u Move the page origin one-quarter inch up.
  220.  
  221.                  L Move the page origin one inch left.
  222.  
  223.     leftarrow or l Move the page origin one-quarter inch right.
  224.  
  225.                  R Move the page origin one inch right.
  226.  
  227.    rightarrow or r Move the page origin one-quarter inch right.
  228.                    "Inches" refers to the "printed" page, and is only
  229.                    approximate on the screen.
  230.  
  231.    CARRIAGE RETURN see the next page in the document.
  232.  
  233.            PG-DOWN see the next page in the document.
  234.  
  235.            PG-  UP see the prev page in the document.
  236.  
  237.               HOME see the first page in the document.
  238.  
  239.                END see the last page in the document.
  240.  
  241.      every number,
  242.        followed by
  243.    CARRIAGE RETURN see the #th page in the document.
  244.  
  245.      every number,
  246.        followed by
  247.                ESC makes nothing.
  248.  
  249.                  Q (or q or X or x or Ctrl-Break or Ctrl-C or Ctrl-Y or ESC)
  250.                    Quit or exit.  The screen will be cleared and restored to
  251.                    its normal mode.
  252.  
  253.                  B Zoom up one magstep (1.2 times larger) from current
  254.                    size.
  255.  
  256.                  b Zoom up 1/2 magstep (1.09 times larger) from
  257.                    current size.
  258.  
  259.                  S Zoom down one magstep (1.2 times smaller) from
  260.                    current size.
  261.  
  262.                  s Zoom down 1/2 magstep (1.09 times smaller) from
  263.                    current size.
  264.  
  265.                    How well these zoom options work depends on how many
  266.                    fonts you have loaded: more is better.
  267.  
  268.                    The command sequence RDsS will result in a display of
  269.                    approximately the same size and origin as a printed
  270.                    page if your physical display is the same size as
  271.                    the IBM 8513, and you start at the normal defaults.
  272.  
  273.  
  274.  
  275.  SPECIALS
  276.  
  277.  The TeX \special command is intended to allow the specification in a
  278.  .tex file of a request to the .DVI driver, usually for the insertion
  279.  of graphical material at that point in the document.  It is not
  280.  implemented for the DVIVGA/DVIHGC driver.
  281.  
  282.  
  283.  BATCH FILES
  284.  
  285.  If you need to use other than the default size a lot, for instance if
  286.  your text is wider than 5.6 inches, you can make this convenient by
  287.  using a batch file. For example, make a batch file, say DVIWIDE.BAT
  288.  containing the line
  289.  
  290.                    dvixxx -m417 -x2.0cm -y1.5cm %1
  291.  
  292.  and nothing else. Then if you say "DVIWIDE filename" you will get your
  293.  6.5 inch wide file to fit on the page. You can of course adjust these
  294.  numbers for your own favorite text shape, and can change other things
  295.  as well.
  296.  
  297.  
  298.  ENVIRONMENT VARIABLES
  299.  
  300.  The behaviour of the .DVI translators can be influenced by definition
  301.  of logical names under PC-DOS.  Compiled-in internal defaults will be
  302.  provided for any of these which are not defined.   They should be
  303.  entirely in upper case. You may need so many environment strings that
  304.  you will have to expand the DOS environment area, maybe as big as 1000
  305.  bytes. I am assuming that you have more than one hard disk: if
  306.  you have only one, change d: to c:. In that case, PCTeX won't need
  307.  to use environment variables.
  308.  
  309.  The names currently recognized are as follows:
  310.  
  311.     FONTLIST  Normally, the drivers are prepared to search first for
  312.               .pk, then  .gf, then .pxl font files. This variable can
  313.               be used to change this search order, or remove one or
  314.               more of the possibilities.  It is expected to contain at
  315.               least one of the strings  PK,  GF, or PXL, possibly
  316.               separated by arbitrary punctuation and other text. Letter
  317.               case is not significant.    Some acceptable strings are
  318.               PXL-then-PK-then-GF,  pk.gf,  use-only-PXL-fonts, and
  319.               PXL/GF/PK. For the fonts provided with this product, use
  320.               "set FONTLIST=pk".
  321.  
  322.     TEXFONTS  This defines the directory path for finding font files.
  323.               Its value is  prepended to the name of a  font to get a
  324.               full file specification.  A typical value for TEXFONTS
  325.               would be d:\pctex\texfonts\. Some people using PCTeX
  326.               might prefer d:\pctex\pixel\.
  327.  
  328.     TEXINPUTS This defines the directory path for finding files which
  329.               are not in the current working directory. It is
  330.               prepended to file names. A typical value for TEXINPUTS
  331.               would be d:\pctex\texinput\
  332.  
  333.     DVISCR    !!! DVIVGA only !!!
  334.               This variable allows specification of a particular video
  335.               mode, independent of the automatically assumed one.
  336.               Meaningful values are:
  337.  
  338.               set DVISCR=EGAM        ega mono screen
  339.               set DVISCR=EGAC        ega color screen
  340.               set DVISCR=VGAM        vga mono screen
  341.               set DVISCR=VGAC        vga color screen
  342.  
  343.  The purpose of this is normally to allow running DVIVGA under
  344.  alternative "environments". In particular, under Microsoft Windows
  345.  386, setting DVISCR=EGAC or EGAM will allow you to run DVIVGA in a
  346.  window if you have a VGA, using the Windows 386 420 line driver. Doing
  347.  this will allow looking at screen output simultaneously with looking
  348.  at your .tex file in an editor like Windows Write or Notepad.
  349.  
  350.  Getting both PC-TeX and these drivers to work at the same time
  351.  requires lots of environment variables.
  352.  One set that works for me is:
  353.  
  354.      set TEXFMTS=d:\pctex\texfmts
  355.      set TEXINPUTS=d:\pctex\texinput\
  356.      set TEXFONTS=d:\pctex\texfonts\   (see section below)
  357.      set FONTLIST=PK
  358.  
  359.  where you will note that the ones for the device drivers end in "\"
  360.  while the ones for PC-TeX itself don't. You might also need:
  361.  
  362.       set TEXINPUT=d:\pctex\texinput
  363.       set TEXTFMS=d:\pctex\textfms
  364.  
  365.  You could get away without expanding your environment by using a
  366.  configuration file for PC-TeX, putting it on the PC-TeX command line,
  367.  by omitting FONTLIST (which at worst would slow things down a bit),
  368.  and by putting the fonts in a directory with a shorter pathname. You
  369.  could get rid of TEXINPUTS entirely by putting a copy of texfonts.sub
  370.  in your current directory. Again, if you have only one hard disk,
  371.  PCTeX probably won't need TEXFMTS, TEXINPUT, and TEXTFMS.
  372.  
  373.  
  374.  
  375.  DIRECTORY STRUCTURE FOR FONTS
  376.  
  377.  The fonts have to be placed in a proper manner. Assuming you set, as I
  378.  do, TEXFONTS to d:\pctex\texfonts\, you need to place all the fonts
  379.  for size 100 in directory d:\pctex\texfonts\100, those for size 121 in
  380.  d:\pctex\texfonts\121, etc. Note that this implies that you will have
  381.  a lot of subdirectories with names that are numbers. These numbers
  382.  are dot per inch values, and are 1/5 the "magnification value" used
  383.  with the "m" command line parameter. It is traditional to put .pk
  384.  and .gf fonts in directories numbered like that. Pixel (.pxl) files
  385.  are, on the other hand, placed in directories with the magnification
  386.  value in their name. Thus \100\cmr10.pk and \502\cmr10.pxl are likely
  387.  the same font. It appears that PcTeX uses .pxl files a lot for their
  388.  drivers. DVIVGA will use those if they are in the size series it expects.
  389.  Having .pk and .pxl files in the same directory structure PROBABLY
  390.  won't hurt, though it has not been tested. There is nothing magic
  391.  about these directory names - if you like \pixel\ instead of \texfonts\,
  392.  perhaps because it is already there, use it instead.
  393.  
  394.  
  395.  BUGS
  396.  
  397.  None presently known, (See LIMITATIONS and EQUIPMENT REQUIREMENTS)
  398.  
  399.  Certain "clone" computers may have problems with floating point math.
  400.  If the program behaves oddly, try running with the -q flag. If you get
  401.  odd error messages with such phrases as "math" or "floating point"
  402.  in them, try adding the string "set NO87=no-80x87-available"
  403.  in you environment along with all the other strings. Sometimes
  404.  this might make it work. This appears to be a bug the the cloning
  405.  process, not this program.
  406.  
  407.  
  408.  
  409.  LIMITATIONS
  410.  
  411.  It is limited in the number of fonts they can access. It is vitally
  412.  important that you put "FILES=20" or more in your config.sys file. If
  413.  you don't, you can get tied up in (almost) infinite searches for files
  414.  which can never be loaded. Under optimum circumstances, at least 35
  415.  fonts can be used in a document, even on one page. This is for a 640K
  416.  computer.
  417.  
  418.  
  419.  
  420.  
  421. Bugs in either the software or its documentation
  422. should be reported by electronic or postal mail to
  423.  
  424.     Stefan A. M\"uhlenweg
  425.     Institut f\"ur Meereskunde der Universit\"at Hamburg
  426.     Troplowitzstr. 7
  427.     D-2000 Hamburg 54
  428.     West-Germany
  429.  
  430.     Tel. +49 (40)4123-2996
  431.     EMAIL: me50090@dhhuni4.bitnet
  432.  
  433. or to
  434.  
  435.     Martin Bauchrowitz
  436.     Breslauerstr. 9
  437.     D-7257 Ditzingen
  438.     West-Germany
  439.  
  440.     Tel. +49 (7156)8220
  441.  
  442. or to
  443.  
  444.     Doug McDonald
  445.  
  446.     EMAIL:
  447.     mcdonald@uiucuxe.bitnet   (Bitnet)
  448.     mcdonald@uxe.cso.uiuc.edu (Internet)
  449.  
  450. or to
  451.  
  452.     Nelson H.F. Beebe
  453.     Center for Scientific Computation
  454.     220 South Physics Building
  455.     University of Utah
  456.     Salt Lake City, UT 84112
  457.     USA
  458.  
  459.     Tel: USA (801) 581-5254
  460.     EMAIL: Beebe@Science.Utah.Edu (Internet)
  461.  
  462.  
  463.  
  464.  
  465.